package cn.com.jinhao.hotline.commons.vo.business;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.Date;

/**
 * hotline-spring-cloud
 * <p>Description: 撤单审核信息请求类</p>
 *
 * @author ShaneMew
 * @version 1.0
 * @date 2020/4/8
 * @since 2020-04-08
 */

@Data
@ApiModel(value = "CancelWorkOrderAuditRequestVO", description = "撤单审核信息请求类")
public class CancelWorkOrderAuditRequestVO {
    @ApiModelProperty(value = "审核人编码")
    @NotNull(message = "审核人编码不能为空")
    @Pattern(regexp = "^[0-9]*$", message = "事件编码必须为数字")
    private String auditorCode;

    @ApiModelProperty(value = "审核人")
    @NotNull(message = "审核人不能为空")
    private String auditor;

    @ApiModelProperty(value = "撤单编码")
    @NotNull(message = "撤单编码不能为空")
    @Pattern(regexp = "^[0-9]*$", message = "撤单编码必须为数字")
    private String code;

    @ApiModelProperty(value = "审核结果： 0-驳回  1-通过", allowableValues = "0,1")
    @NotNull(message = "审核结果不能为空")
    @Pattern(regexp = "^[0-9]*$", message = "审核结果必须为数字")
    private String auditResult;

    @ApiModelProperty(value = "审核时间")
    @NotNull(message = "审核时间不能为空")
    private Date auditDate;

    @ApiModelProperty(value = "审核附言")
    @NotNull(message = "审核附言不能为空")
    private String auditDemo;
}
